﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LearnCSharp.SqlMap.Extension
{
    [System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public sealed class DataColumnAttribute : Attribute
    {
        public DataColumnAttribute(string dataType)
        {
            this.DataType = dataType;
        }

        public DataColumnAttribute(string columnName, string dataType)
        {
            this.ColumnName = columnName;
            this.DataType = dataType;
        }

        public string ColumnName { get; set; }
        public string DataType { get; set; }
    }
}
